#define  _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<deque>
using namespace std;

#include"priority_queue.h"

int main()
{
	my_priority_queue::priority_queue<int, deque<int>, my_priority_queue::greater<int>> pq1;
	pq1.push(1);
	pq1.push(0);
	pq1.push(8);
	pq1.push(-1);
	pq1.push(3);
	pq1.push(6);

	while (!pq1.empty())
	{
		cout << pq1.top() << " ";
		pq1.pop();
	}
	cout << endl;

	vector<int> v = { 1,0,8,-1,3,6 };
	my_priority_queue::priority_queue<int, vector<int>, my_priority_queue::less<int>> pq2(v.begin(), v.end());
	while (!pq2.empty())
	{
		cout << pq2.top() << " ";
		pq2.pop();
	}

	return 0;
}